/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.st.utils

/**
 *
 * @author ddevore
 */
class DataList {

    static Object createListWithSize(int size, List list) {
        def tList = [
            totalRecords:size,
            results:list
        ]
        return tList
    }

    static Object createListWithSize(List list) {
        def tList = [
            totalRecords:list.size(),
            results:list
        ]
        return tList
    }

    static Object createList(List list) {
        def tList = [
            result:list
        ]
        return tList
    }
}

